package de.rwthaachen.wzl.gt.user.trn.calc;

import de.rwthaachen.wzl.gt.tools.calc.CalculatorFunction;
import de.rwthaachen.wzl.gt.tools.calc.gui.CalculatorConstraints;

public class Quadratwurzel implements CalculatorFunction {
	
	private Number zahl;

	public Number getResult() {
		return new Double(Math.sqrt(zahl.doubleValue()));
	}

	public String getSection() {
		return CalculatorConstraints.PANEL_FUCTIONS;
	}

	public String getTextResult() {
		return null;
	}

	public String getTitle() {
		return "rt";
	}

	public boolean isUnary() {
		return true;
	}

	public void setOperand(Number op) {
		zahl = op;
	}
}